package com.mustafaiev.tair.constant;

import org.springframework.security.core.GrantedAuthority;

public enum PayerRole implements GrantedAuthority {

	ROLE_CTS_ADMIN(0), ROLE_CTS_GROUP_OWNER(1), ROLE_CTS_PAYER(2), ROLE_CTS_NEW_USER(
			3);

	private int bit;

	PayerRole(final int bit) {
		this.setBit(bit);
	}

	public String getAuthority() {
		return toString();
	}

	public int getBit() {
		return this.bit;
	}

	public void setBit(final int bit) {
		this.bit = bit;
	}

}
